<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>
            <p:dialog position="left top" header="Super Mestre" widgetVar="dlgCategoria" modal="true" width="620" height="350" visible="#{PageManager.modalVisible}" resizable="true" closable="true" >
                <h:panelGroup id="painelMensagens" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" warnStyle="color: blue" layout="table"/>
                </h:panelGroup>
                <div style="text-align: right">
                    <p:commandButton image="ui-icon ui-icon-closethick"  onclick="dlgCategoria.hide();" action="#{PageManager.setModalInvisible}" title="fechar" />
                </div>
                <ui:include src="#{PageManager.modalActive}" />
            </p:dialog>
        </ui:composition>

    </body>
</html>
